import http from '@/http/http'
import { DateListParams, DetailParams } from '@/views/family/interface/interface'
enum Api {
  dateList = '/manage/admin/familyInfo/dateList',
  detail = '/manage/admin/familyInfo/detail',
  getTargetUser = '/manage/admin/userInfo/getTargetUser',
  transferByData = '/manage/admin/familyInfo/transferByData',
  getOriginalUser = '/manage/admin/userInfo/getOriginalUser',
  transferByUser = '/manage/admin/familyInfo/transferByUser',
}
//详情-获取时间下拉列表
export const dateListApi = async (params: DateListParams) => {
  return await http.post(Api.dateList, params)
}
//详情
export const detailApi = async (params: DetailParams) => {
  return await http.post(Api.detail, params)
}
//获取数据转移目标人列表
export const getTargetUserApi = async (params: any) => {
  return await http.getUrl(Api.getTargetUser, params)
}
//勾选数据转移
export const transferByDataApi = async (params: any) => {
  return await http.put(Api.transferByData, params)
}
//批量数据转移
export const transferByUserApi = async (params: any) => {
  return await http.put(Api.transferByUser, params)
}
//获取数据原持有人列表
export const getOriginalUserApi = async (params: any) => {
  return await http.getUrl(Api.getOriginalUser, params)
}